Skip to content

zh-cn: the calling order description of reviver() parameter for JSON.parse() should be updated #26970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AK1118 opened this issue Apr 25, 2025 · 1 comment
Labels
l10n-zh Issues related to Chinese content.

Comments

@AK1118
Copy link

AK1118 commented Apr 25, 2025

MDN URL

https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse

与此议题相关的小节或标题?

No response

哪些信息是错误、无用或不完善的?

"输出当前的属性名,从而得知遍历顺序是从内向外的," 。错误纠正后内容应该是 "输出当前的属性名,从而得知遍历顺序是【从外向内】的,"

你期望看到什么?

输出当前的属性名,从而得知遍历顺序是从外向内的,

你有什么支持的链接、参考或引用?

No response

你还想补充什么内容?

No response

MDN metadata

Page report details
@AK1118 AK1118 added l10n-zh Issues related to Chinese content. needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Apr 25, 2025
@yin1999
Copy link
Member

yin1999 commented Apr 27, 2025

这里的说法有歧义,说的是对于每一个属性,是以深度优先(即从内层开始,向外层逐层调用)的方式遍历调用 reviver() 函数的,你看一下实际的输出日志应该能看懂。

不过这个文档最好还是像英文文档一样更新一下,将相关的内容移动到示例部分的上门,且更新相关的描述,使之更易于被读者看懂。

@yin1999 yin1999 removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Apr 27, 2025
@yin1999 yin1999 changed the title "输出当前的属性名,从而得知遍历顺序是从内向外的" zh-cn: the calling order description of reviver() parameter for JSON.parse() should be updated Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
Status: To do - Issues
Development

No branches or pull requests

2 participants